package com.afkt.project.model.item;



import com.afkt.project.model.bean.CommodityEvaluateBean;
import com.dev.utils.common.ChineseUtils;
import com.dev.utils.common.RandomUtils;

import java.util.ArrayList;
import java.util.List;

/**
 * detail: 评价 Item
 * @author Ttt
 */
public class EvaluateItem {

    // 商品评价等级
    public int evaluateLevel;
    // 商品评价内容
    public String evaluateContent;
    // 存储对象
    public CommodityEvaluateBean commodityEvaluateBean;
    // 选择的图片
    public List<String> imageList = new ArrayList<>();

    public EvaluateItem() {
        // 随机字符串
        String text = ChineseUtils.randomWord(RandomUtils.getRandom(50)) + RandomUtils.getRandomLetters(RandomUtils.getRandom(10));
        String randomText = RandomUtils.getRandom(text.toCharArray(), text.length());

        evaluateContent = randomText;
        evaluateLevel = RandomUtils.getRandom(6);
        commodityEvaluateBean = CommodityEvaluateBean.newCommodityEvaluateBean();
    }

    public float getEvaluateLevel() {
        return evaluateLevel;
    }

    public void setEvaluateLevel(int evaluateLevel) {
        this.evaluateLevel = evaluateLevel;
    }

    public String getEvaluateContent() {
        return evaluateContent;
    }

    public void setEvaluateContent(String evaluateContent) {
        this.evaluateContent = evaluateContent;
    }

    public CommodityEvaluateBean getCommodityEvaluateBean() {
        return commodityEvaluateBean;
    }

    public void setCommodityEvaluateBean(CommodityEvaluateBean commodityEvaluateBean) {
        this.commodityEvaluateBean = commodityEvaluateBean;
    }

    public List<String> getImageList() {
        return imageList;
    }

    public void setImageList(List<String> imageList) {
        this.imageList = imageList;
    }
}